/*
 * $Id: CfgSweepFileInfo.java,v 1.6 2009/07/24 18:27:41 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

package com.ge.healthcare.autosc.common.database.pojo;

import com.ge.healthcare.autosc.common.ASCUtil;

/**
 * CfgSweepFileInfo entity. @author MyEclipse Persistence Tools
 */
public class CfgSweepFileInfo extends AbstractCfgSweepFileInfo implements
		java.io.Serializable {

	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = -1383002392613097935L;
	public static final String DOWNLOAD_TO_DEVICE = "PUT";
	public static final String UPLOAD_FROM_DEVICE = "GET";
	public static final String BINARY_TRANSFER = "BINARY";
	public static final String ASCII_TRANSFER = "ASCII";

	// Constructors

	/** default constructor */
	public CfgSweepFileInfo() {
	}

	public boolean equals(CfgSweepFileInfo sweepFileInfo) {
		if ( ASCUtil.isNullOrEmptyObject(sweepFileInfo)){
			return false;
		}
		if (this.getSweepFileId().equals(sweepFileInfo.getSweepFileId())
				&& this.getDirection().equals(sweepFileInfo.getDirection())
				&& this.getLocalFileName().equals(sweepFileInfo.getLocalFileName())
				&& this.getRemoteFileName().equals(sweepFileInfo.getRemoteFileName())
				&& this.getTransferMode().equals(
						sweepFileInfo.getTransferMode())
				&& this.getTransferOrder().equals(
						sweepFileInfo.getTransferOrder())
				&& this.getFileType().equals(
						sweepFileInfo.getFileType())) {
			return true;
		}
		return false;
	}

	public String toString() {
		StringBuffer definiton = new StringBuffer();
		definiton.append("{Sweep File Id=").append(this.getSweepFileId())
				.append("},");
		definiton.append("{Direction=").append(this.getDirection())
				.append("},");
		definiton.append("{Local File Name=").append(this.getLocalFileName()).append("},");
		definiton.append("{Remote File Name=").append(this.getRemoteFileName()).append("},");
		definiton.append("{Transfer Mode=").append(this.getTransferMode())
				.append("},");
		definiton.append("{Ordering=").append(this.getTransferOrder()).append("},");
		definiton.append("{File Type=").append(this.getFileType()).append("}");
		return definiton.toString();
	}

}
